﻿passanger_train = {
	valid_spline_styles = { "railroad" }

	speed = 1.0
	min_caravan_distance = 15.0
	routes_to_caravans_ratio = 0.2
	max_count = 0
	max_path_length = 5

	route_entities = {
		locomotive_1 = {
			entity = "european_train_locomotive_01_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_02_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_03_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_04_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_1_some_variation = {
			entity = "european_train_locomotive_05_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_2 = {
			entity = "train_electric_01_entity"
			position = 0
			
			entity_length = 1.85
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_electric_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_3 = {
			entity = "train_diesel_01_entity"
			position = 0
			
			entity_length = 2.1
			
			possible = {
				scope:state = {
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_diesel_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}



		passenger_wagon_1 = {
			entity = "european_train_passenger_wagon_01_entity"
			position = 1
			
			entity_length = 1.74
			
			possible = {
				scope:state = {
					market = {
						mg:transportation = {
							market_goods_sell_orders > 20
						}
					}
				}
			}
			
			count = {
				scope:state = {
					market = {
						mg:transportation = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 2
				max = 6
			}
		}
		passenger_wagon_2 = {
			entity = "european_train_passenger_wagon_02_entity"
			position = 1
			
			entity_length = 1.74
			
			possible = {
				scope:state = {
					market = {
						mg:transportation = {
							market_goods_sell_orders > 20
						}
					}
				}
			}
			
			count = {
				scope:state = {
					market = {
						mg:transportation = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 2
				max = 6
			}
		}
		passenger_wagon_3 = {
			entity = "european_train_passenger_wagon_03_entity"
			position = 1
			
			entity_length = 1.74
			
			possible = {
				scope:state = {
					market = {
						mg:transportation = {
							market_goods_sell_orders > 20
						}
					}
				}
			}
			
			count = {
				scope:state = {
					market = {
						mg:transportation = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 2
				max = 6
			}
		}
	}
}









mining_train = {
	valid_spline_styles = { "railroad" }

	speed = 1.0
	min_caravan_distance = 15.0
	routes_to_caravans_ratio = 0.2
	max_count = 0
	max_path_length = 5

	route_entities = {
		locomotive_steam_01 = {
			entity = "european_train_locomotive_01_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_steam_02 = {
			entity = "european_train_locomotive_02_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_steam_03 = {
			entity = "european_train_locomotive_03_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_steam_04 = {
			entity = "european_train_locomotive_04_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_steam_05 = {
			entity = "european_train_locomotive_05_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_electric = {
			entity = "train_electric_01_entity"
			position = 0
			
			entity_length = 1.85
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_electric_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_diesel = {
			entity = "train_diesel_01_entity"
			position = 0
			
			entity_length = 2.1
			
			possible = {
				scope:state = {
					OR = {
						has_building = building_coal_mine
						has_building = building_iron_mine
						has_building = building_steel_mills
						has_building = building_sulfur_mine
					}
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_diesel_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}



		cargo_coal_wagon_1 = {
			entity = "train_cargo_coal_01_entity"
			position = 1
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_coal_mine
					market = {
						mg:coal = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:coal = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_coal_wagon_2 = {
			entity = "train_cargo_coal_02_entity"
			position = 1
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_coal_mine
					market = {
						mg:coal = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:coal = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_coal_wagon_3 = {
			entity = "train_cargo_coal_03_entity"
			position = 1
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_coal_mine
					market = {
						mg:coal = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:coal = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}


		
		cargo_iron_wagon_1 = {
			entity = "train_cargo_iron_01_entity"
			position = 2
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_iron_mine
					market = {
						mg:iron = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:iron = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_iron_wagon_2 = {
			entity = "train_cargo_iron_02_entity"
			position = 2
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_iron_mine
					market = {
						mg:iron = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:iron = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_iron_wagon_3 = {
			entity = "train_cargo_iron_03_entity"
			position = 2
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_iron_mine
					market = {
						mg:iron = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:iron = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}



		cargo_steel_wagon_1 = {
			entity = "train_cargo_steel_01_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_steel_mills
					
					market = {
						mg:steel = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:steel = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_steel_wagon_2 = {
			entity = "train_cargo_steel_02_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_steel_mills
					
					market = {
						mg:steel = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:steel = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_steel_wagon_3 = {
			entity = "train_cargo_steel_03_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_steel_mills
					
					market = {
						mg:steel = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:steel = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_steel_wagon_4 = {
			entity = "train_cargo_steel_04_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_steel_mills
					
					market = {
						mg:steel = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:steel = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}



		cargo_sulfur_wagon_1 = {
			entity = "train_cargo_sulfur_01_entity"
			position = 3
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_sulfur_mine
					market = {
							mg:sulfur = {
								market_goods_sell_orders > 50
							}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:sulfur = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 4
			}
		}
		cargo_sulfur_wagon_2 = {
			entity = "train_cargo_sulfur_02_entity"
			position = 3
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_sulfur_mine
					market = {
							mg:sulfur = {
								market_goods_sell_orders > 50
							}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:sulfur = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 4
			}
		}
		cargo_sulfur_wagon_3 = {
			entity = "train_cargo_sulfur_03_entity"
			position = 3
			
			entity_length = 1.05
			
			possible = {
				scope:state = {
					has_building = building_sulfur_mine
					market = {
							mg:sulfur = {
								market_goods_sell_orders > 50
							}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:sulfur = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 4
			}
		}



	}
}








forestry_train = {
	valid_spline_styles = { "railroad" }

	speed = 1.0
	min_caravan_distance = 15.0
	routes_to_caravans_ratio = 0.2
	max_count = 0
	max_path_length = 5

	route_entities = {
		locomotive_1 = {
			entity = "european_train_locomotive_01_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_02_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_03_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}
		
		locomotive_1_some_variation = {
			entity = "european_train_locomotive_04_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_1_some_variation = {
			entity = "european_train_locomotive_05_entity"
			position = 0
			
			entity_length = 2
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_steam_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_2 = {
			entity = "train_electric_01_entity"
			position = 0
			
			entity_length = 1.85
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_electric_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}

		locomotive_3 = {
			entity = "train_diesel_01_entity"
			position = 0
			
			entity_length = 2.1
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					has_building = building_railway
					any_scope_building = {
						has_active_production_method = pm_diesel_trains
					}
				}
			}
			
			count = {
				value = 1
			}
		}



		cargo_log_wagon_1 = {
			entity = "train_cargo_log_01_entity"
			position = 1
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_no_hardwood
					}

					market = {
						mg:wood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:wood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_log_wagon_2 = {
			entity = "train_cargo_log_02_entity"
			position = 1
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_no_hardwood
					}

					market = {
						mg:wood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:wood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_log_wagon_3 = {
			entity = "train_cargo_log_03_entity"
			position = 1
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_no_hardwood
					}

					market = {
						mg:wood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:wood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_log_wagon_4 = {
			entity = "train_cargo_log_04_entity"
			position = 1
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_no_hardwood
					}

					market = {
						mg:wood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:wood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}



		cargo_hardwood_wagon_1 = {
			entity = "train_cargo_hardwood_01_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_hardwood
					}

					market = {
						mg:hardwood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:hardwood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_hardwood_wagon_2 = {
			entity = "train_cargo_hardwood_02_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_hardwood
					}

					market = {
						mg:hardwood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:hardwood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_hardwood_wagon_3 = {
			entity = "train_cargo_hardwood_03_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_hardwood
					}

					market = {
						mg:hardwood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:hardwood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}
		cargo_hardwood_wagon_4 = {
			entity = "train_cargo_hardwood_04_entity"
			position = 2
			
			entity_length = 1.6
			
			possible = {
				scope:state = {
					has_building = building_logging_camp
					any_scope_building = {
						has_active_production_method = pm_hardwood
					}

					market = {
						mg:hardwood = {
							market_goods_sell_orders > 100
						}
					}
				}
			}
			
			count = {
				value = 0
				scope:state = {
					market = {
						mg:hardwood = {
							add = market_goods_sell_orders
						}
					}
				}
				divide = 1000
				add = 1
				max = 5
			}
		}



	}
}